import { Init, Provide } from '@midwayjs/decorator';
import { BaseService } from '@cool-midway/core';
import { InjectEntityModel } from '@midwayjs/typeorm';
import { Repository } from 'typeorm';
import { LoginlistInfoEntity } from '../entity/info';

/**
 * loginlist模块-登陆信息服务
 */
@Provide()
export class LoginlistInfoService extends BaseService {
  @InjectEntityModel(LoginlistInfoEntity)
  loginlistInfoEntity: Repository<LoginlistInfoEntity>;

  @Init()
  async init() {
    await super.init();
    this.setEntity(this.loginlistInfoEntity);
  }

}
